#ifndef FORKEDECHOSERVER_H
#define FORKEDECHOSERVER_H

#include "unp.h"
#include "SocketWrapper.h"
#include "SocketServer.h"

class ForkedEchoServer : public SocketServer
{
public:
	ForkedEchoServer(in_port_t port);

protected:
	virtual void handleAccept(int connfd, struct sockaddr_in* clientaddress);

private:
	void echo(int connfd);
};


#endif /* FORKEDECHOSERVER_H */

